home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19990422-19990725 / 000098_news@watsun.cc.columbia.edu _Wed May 26 13:22:52 1999.msg < prev    next >
Internet Message Format  |  2020-01-01  |  4KB

  1. Return-Path: <news@watsun.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id NAA09149
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Wed, 26 May 1999 13:22:52 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id MAA15813
  7.     for kermit.misc@watsun.cc.columbia.edu; Wed, 26 May 1999 12:54:50 -0400 (EDT)
  8. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  9. From: jaltman@watsun.cc.columbia.edu (Jeffrey Altman)
  10. Subject: Re: kermit process hangs around after terminal disconnect
  11. Date: 26 May 1999 16:54:48 GMT
  12. Organization: Columbia University
  13. Message-ID: <7ih90o$fe2$1@newsmaster.cc.columbia.edu>
  14. To: kermit.misc@watsun.cc.columbia.edu
  15.  
  16. In article <7ih1du$rfg$1@nnrp1.deja.com>,
  17. Mr. Scott  <scott_davis@my-dejanews.com> wrote:
  18. : > Which indicates that your Telnet connection was no longer valid
  19. : because
  20. : > the AIX box did not recognize that the connection was terminated.  If
  21. : the
  22. : > AIX box received the connection closure it would have terminated the
  23. : > shell, the kermit process, and anything else that you were running.
  24. : Okay, now it's your turn to explain a bit more.
  25. : Are you saying that my Procomm session disconnected without realizing
  26. : it was disconnected and without sending some sort of message to UNIX
  27. : saying "hey, i have disconnected", and therefore UNIX didn't clean up.
  28. : Wouldn't UNIX sense a broken connection even though a nice, neat, "hey,
  29. : I'm disconnected" message didn't arrive?
  30. : One thing I can see clearly now, and thanks in advance for leading me
  31. : to think it out myself.  That is, I understand why kermit is hanging
  32. : around.  Obviously, if UNIX thinks I'm still running my shell, there's
  33. : no reason to send a HUP to kill kermit.  But why does it still think
  34. : I'm running my shell when my session terminated?  I know this goes back
  35. : to the previous paragraph's question, and I await what I'm sure will be
  36. : a very interesting answer.
  37.  
  38. >From the standpoint of the Unix side of the connection everything is
  39. perfectly fine.  It has not received any data in a long time but there
  40. is no requirement that it ever receive any data.  Nor has it tried
  41. to send any data therefore as far as it is concerned everything
  42. is ok.
  43.  
  44. >From the Procomm side, it looks to me that Procomm is not checking the
  45. error code of attempts to write to the socket.  If it did it would 
  46. eventually determine that the route between the PC and AIX is no
  47. longer functioning.  The problem could be caused by extremely high
  48. packet loss rates over the Internet or a router which has been 
  49. restarted.  
  50.  
  51. What Kermit 95 would do in this situation would be to check the error
  52. condition of each attempt to write data.  The first attempt to send
  53. data on a broken connection would not report an error but all future
  54. attempts would fail.  Once a failure was detected K95 would close 
  55. the connection.  However, this might not help you.  If the cause of
  56. your problem is a router that is no longer functioning, there is no
  57. way for the PC to indicate to the AIX box that this particular 
  58. TCP/IP connection is being closed.  
  59.  
  60. If you want the host to detect that the connection is no longer
  61. valid, the telnetd will have to be modified to attempt to send some
  62. message on a periodic basis to test the connection.  This could be
  63. a telnet go ahead or a telnet data mark message.  Anything that the 
  64. client will process and not respond with real data.
  65.  
  66.     Jeffrey Altman * Sr.Software Designer * Kermit-95 for Win32 and OS/2
  67.                  The Kermit Project * Columbia University
  68.               612 West 115th St #716 * New York, NY * 10025
  69.   http://www.kermit-project.org/k95.html * kermit-support@kermit-project.org